export const qsType = {
  options: [
    { value: 1, label: '普通咨询' },
    { value: 2, label: '报批指导' },
    { value: 3, label: '方案定制' },
    { value: 4, label: '模拟审核' },
    { value: 5, label: '旧厂区改造' },
    { value: 6, label: '水电气网报装' },
    { value: 7, label: '预验收' },
    { value: 8, label: '联合验收服务' }
  ],
  getName(value) {
    const find = this.options.find(el => el.value == value)
    return find ? find.label : value
  }
}
export const qsStatus = {
  options: [
    { value: 0, label: '受理中', color: '#D12020' },
    { value: 1, label: '已完成', color: '#20B153' },
    { value: 2, label: '待受理', color: '#2F86FD' }
  ],
  getName(value) {
    const find = this.options.find(el => el.value == value)
    return find ? find.label : value
  },
  getColor(value) {
    const find = this.options.find(el => el.value == value)
    return find ? find.color : value
  }
}
export const problemType = {
  options: [
    { value: 1, label: '地块未交付' },
    { value: 2, label: '农转用' },
    { value: 3, label: '三通一平' },
    { value: 4, label: '土地出让' },
    { value: 5, label: '土地征收' },
    { value: 6, label: '土地容积率' },
    { value: 7, label: '地块不合适' },
    { value: 8, label: '方案设计' },
    { value: 9, label: '安评能评环评' },
    { value: 10, label: '施工图审' },
    { value: 11, label: '施工困难' },
    { value: 12, label: '违章建筑' },
    { value: 13, label: '规划验收' },
    { value: 14, label: '消防验收' },
    { value: 15, label: '城管验收' },
    { value: 16, label: '政策冲突' }
  ],
  getName(value) {
    const find = this.options.find(el => el.value == value)
    return find ? find.label : value
  }
}
// 项目进行状态
export const progressStatus = {
  options: [
    { value: 0, label: '进行中' },
    { value: 1, label: '已完成' },
    { value: 2, label: '未完成' }
  ],
  getName(value) {
    const find = this.options.find(el => el.value == value)
    return find ? find.label : value
  }
}

export const helpGType = {
  options: [
    { value: 1, label: '通水' },
    { value: 2, label: '通电' },
    { value: 3, label: '通气' },
    { value: 4, label: '通网络' }
  ],
  getName(value) {
    const find = this.options.find(el => el.value == value)
    return find ? find.label : value
  }
}
